import request from '@/utils/request'

// 查询患者处方信息列表
export function listPrescriptionInfo(query) {
  return request({
    url: '/sn/prescriptionInfo/list',
    method: 'get',
    params: query
  })
}

// 查询患者处方信息详细
export function getPrescriptionInfo(prescriptionInfoId) {
  return request({
    url: '/sn/prescriptionInfo/' + prescriptionInfoId,
    method: 'get'
  })
}

// 新增患者处方信息
export function addPrescriptionInfo(data) {
  return request({
    url: '/sn/prescriptionInfo',
    method: 'post',
    data: data
  })
}

// 修改患者处方信息
export function updatePrescriptionInfo(data) {
  return request({
    url: '/sn/prescriptionInfo',
    method: 'put',
    data: data
  })
}

// 删除患者处方信息
export function delPrescriptionInfo(prescriptionInfoId) {
  return request({
    url: '/sn/prescriptionInfo/' + prescriptionInfoId,
    method: 'delete'
  })
}
